package com.vehicle.comvehiclehealth;

import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;

/**
 * Created by cunguoyao on 2018-07-22.
 */

public class BaseActivity extends AppCompatActivity {

    private TextView titleText;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

    }

    protected void setTitle(String title) {
        titleText = (TextView) findViewById(R.id.title_text);
        if(titleText != null) {
            titleText.setText(title);
        }
    }
}
